package com.castle.fortress.admin.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.castle.fortress.admin.core.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 商品规格项目详情 实体类
 *
 * @author majunjie
 * @since 2021-11-25
 */
@Data
@TableName("goods_option")
@EqualsAndHashCode(callSuper = true)
public class GoodsOptionEntity extends BaseEntity  {
	private static final long serialVersionUID = 1L;
	/**
	 * 商品id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long goodsId;
	/**
	 * 规格设置（存规格的id 会有多个）
	*/
	private String specs;
	/**
	 * 名称
	*/
	private String name;
	/**
	 * 商品原价
	*/
	private String productPrice;
	/**
	 * 商品现价
	*/
	private String marketPrice;
	/**
	 * 商品成本
	*/
	private String costPrice;
	/**
	 * 商品库存 -1 不限库存
	*/
	private String stock;
	/**
	 * 商品重量
	*/
	private String weight;
	/**
	 * 排序
	*/
	private Integer sort;
	/**
	 * 商品编码
	*/
	private String goodsSn;
	/**
	 * 商品条码
	*/
	private String productSn;
	/**
	 * 备注
	*/
	private String remark;

}
